<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script src="js/jquery-1.9.1.js"></script>
    <script src="js/layer.js"></script>
    <script>
        $(function () {
            $("#btn").click(function () {
                layer.confirm('您是如何看待前端开发？', {
                    btn: ['重要','奇葩'] //按钮
                }, function(){
                    layer.msg('的确很重要', {icon: 1});
                }, function(){
                    layer.msg('也可以这样', {
                        time: 20000, //20s后自动关闭
                        btn: ['明白了', '知道了']
                    });
                });
            })
        })
    </script>
</head>
<body>
<!--<button id="btn" value="这是一个按钮">AAAAAAAAAAAAAAAAAAAa</button>-->
<input type="button"value="这是个按钮" id="btn">
</body>
<script>

</script>
</html>